#ifndef __RTC_H__
#define __RTC_H__

#include "sys.h"
#include "time.h"
#include "stdio.h"
#include "beep.h"

void rtc_init(void);
uint16_t rtc_read_bkp(uint8_t bkpx);
void rtc_write_bkp(uint8_t bkpx, uint16_t data);
void rtc_get_time(uint8_t *time_data);
void rtc_set_time(uint8_t *time_data);
void rtc_set_alarm(uint8_t *alarm_data);
void rtc_get_alarm(uint8_t *alarm_data);

#endif